package com.sl.au.entity;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "sl_qtouch_partsWarn")
public class PartsWarn extends Root {
	
	/**
	 * 报警的关系符号    
	 * 1 代表 >
	 * 2 代表 >=
	 * 3 代表 <
	 * 4 代表 <=
	 */
	private int warnMinValueType;
	private int warnMaxValueType;
	private String warnStatus;//告警类型
	private String warnExp;//告警说明
	
	/**
	 * 报警数值
	 */
	
	private Double warnMinValue;
	private Double warnMaxValue;
	
	/**
	 * 部件参数属性
	 */
	@ManyToOne
	private PartsAttributes partsAttributes;
	
	public int getWarnMinValueType() {
		return warnMinValueType;
	}
	public void setWarnMinValueType(int warnMinValueType) {
		this.warnMinValueType = warnMinValueType;
	}
	
	
	public Double getWarnMinValue() {
		return warnMinValue;
	}
	public void setWarnMinValue(Double warnMinValue) {
		this.warnMinValue = warnMinValue;
	}
	
	public int getWarnMaxValueType() {
		return warnMaxValueType;
	}
	public void setWarnMaxValueType(int warnMaxValueType) {
		this.warnMaxValueType = warnMaxValueType;
	}
	
	
	public Double getWarnMaxValue() {
		return warnMaxValue;
	}
	public void setWarnMaxValue(Double warnMaxValue) {
		this.warnMaxValue = warnMaxValue;
	}

	public String getWarnStatus() {
		return warnStatus;
	}
	public void setWarnStatus(String warnStatus) {
		this.warnStatus = warnStatus;
	}
	
	public String getWarnExp() {
		return warnExp;
	}
	public void setWarnExp(String warnExp) {
		this.warnExp = warnExp;
	}
	
	public PartsAttributes getPartsAttributes() {
		return partsAttributes;
	}

	public void setPartsAttributes(PartsAttributes partsAttributes) {
		this.partsAttributes = partsAttributes;
	}
	
}
